package com.zx.framework.plat.company.po;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * CompanyExt entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="s_company_ext")

public class CompanyExt  implements java.io.Serializable {


    // Fields    

     private CompanyExtId id;
     private String val;
     private String type;
     private String remark;


    // Constructors

    /** default constructor */
    public CompanyExt() {
    }

	/** minimal constructor */
    public CompanyExt(CompanyExtId id, String val, String type) {
        this.id = id;
        this.val = val;
        this.type = type;
    }
    
    /** full constructor */
    public CompanyExt(CompanyExtId id, String val, String type, String remark) {
        this.id = id;
        this.val = val;
        this.type = type;
        this.remark = remark;
    }

   
    // Property accessors
    @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="companyId", column=@Column(name="COMPANYID", nullable=false, length=64) ), 
        @AttributeOverride(name="projectId", column=@Column(name="PROJECTID", nullable=false, length=64) ), 
        @AttributeOverride(name="name", column=@Column(name="NAME", nullable=false, length=64) ) } )

    public CompanyExtId getId() {
        return this.id;
    }
    
    public void setId(CompanyExtId id) {
        this.id = id;
    }
    
    @Column(name="VAL", nullable=false, length=512)

    public String getVal() {
        return this.val;
    }
    
    public void setVal(String val) {
        this.val = val;
    }
    
    @Column(name="TYPE", nullable=false, length=64)

    public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    @Column(name="REMARK", length=100)

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
   








}